<?php
if (Yii::app()->params['html_compress'] == 1) {
    include ROOT_PATH . '/lib/minify/compress_html.php';
    ob_start('replace_tabs_newlines');
}
$base_path = Yii::app()->baseUrl;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <link href="<?php echo $base_path ?>/css/style.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $base_path ?>/css/ui-lightness/jquery-ui.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $base_path ?>/css/mystyle.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<?php echo $base_path ?>/js/jquery.js"></script>
    </head>

    <body class="bd-home">
        <div id="wrapper">
            <!--Begin header -->
            <div class="header-wrapp">
                <div class="main clearfix">
                    <div class="header-top clearfix" style="position: relative; z-index: 100;">
                        <ul class="right none-border">
                            <li><a href="#">Find Jobs</a></li>
                        <li><a href="#">Find Resumes </a></li>
                        <li><a href="#">Employers / Post Job</a></li>
                        <li><a href="#">Post Your Resume </a></li>
                            <?php
                            if (!empty($this->user)) {
                                ?>
                        <li class="user_profile_home">
                                    <a href="<?php echo $this->createUrl('profile/index') ?>" class="active"><strong><?php echo $this->user['email'] ?></strong>
                                        <span class="line"></span>
                                    </a>
                                    <div class="show-sub" style="border: 1px solid #DBDBDB; right: -1px; display: none;">
                                        <ul>
                                            <li><a href="<?php echo $this->createUrl('profile/jobsearch') ?>">My Searches</a></li>
                                            <li><a href="<?php echo $this->createUrl('profile/index') ?>">My Jobs</a></li>
                                            <li><a href="<?php echo $this->createUrl('profile/emailalert') ?>">Alerts</a></li>
                                            <li><a href="<?php echo $this->createUrl('profile/account') ?>">Account</a></li>
                                        </ul>
                                        <div class="sub-bot">
                                            <strong><?php echo $this->user['email'] ?></strong>
                                            <a href="<?php echo $this->createUrl('account/logout', array('dest' => base64_encode($_SERVER['REQUEST_URI']))); ?>">Logout</a>
                                        </div>
                                    </div>
                                    <div style="clear: both;"></div>
                                </li>
                                <?php
                            } else {
                                ?>
                                <li><a href="<?php echo $this->createUrl('account/login', array('dest' => base64_encode($_SERVER['REQUEST_URI']))); ?>">Login</a></li>
                                <?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
                <div class="header bg-none clearfix">
                    <div class="main clearfix">
                        <p class="toplogo">
                            <a href="<?php echo $base_path . '/'; ?>" class="logo"><img src="<?php echo $base_path ?>/images/logo.png" width="216" height="41" alt="" /></a>
                        </p>
                        <form id="search_header" name="" action="<?php echo $base_path ?>/search/result/" method="GET">
                            <div class="search-home clearfix">
                                <div class="keyword-loca">
                                    <label>Keyword</label>
                                    <input type="text" value="<?php echo $_GET['kw']; ?>" name="kw" id="kw_suggest_header" />                                    
                                </div>
                                <div class="keyword-loca">
                                    <label>Location</label>
                                    <input type="text" name="lname" value="<?php echo $_GET['lname']; ?>" id="local_suggest_header" />                                    
                                </div>
                                <input type="hidden" name="submit" value="submit" />
                                <div class="button-set">
                                    <button type="submit"><span><span>Search all job</span></span></button>
                                    <a href="<?php echo $this->createUrl('search/advanced'); ?>">Advanced job search</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- End header -->
            <!-- begin content -->
            <div class="main">
                <?php echo $content; ?>
            </div>
            <!-- end content -->
            <!-- begin footer -->
            <div class="footer bg-none">
                <ul class="link">
                    <li><a href="#">Post job</a></li>
                    <li><span>|</span></li>
                    <li><a href="#">Employer</a></li>
                    <li><span>|</span></li>
                    <li><a href="#">Publishor</a></li>
                    <li><span>|</span></li>
                    <li><a href="#">Prowse</a></li>
                    <li><span>|</span></li>
                    <li><a href="<?php echo $this->createUrl('about/detail', array('alias' => 'about')); ?>">About</a></li>
                    <li><span>|</span></li>
                    <li><a href="#">Help</a></li>
                </ul>
                <address>&copy; 2012 job search hired <a href="#">Privacy Terms</a></address>
                <div class="share clearfix">
                    <a href="#" class="fa"></a>
                    <a href="#" class="tw"></a>
                    <a href="#" class="in"></a>
                </div>
            </div>
            <!-- end footer -->
        </div>
        <script type="text/javascript" src="<?php echo $base_path ?>/js/script.js"></script>
        <script type="text/javascript" src="<?php echo $base_path ?>/js/jquery-ui.js"></script>
        <input type="hidden" id="base_path" value="<?php echo $base_path; ?>" />
        <input type="hidden" id="domain" value="<?php echo Yii::app()->params['domain']; ?>" />
    </body>
</html>
<?php
if (Yii::app()->params['html_compress'] == 1) {
    ob_end_flush();
}
?>